package enums

import (
	"fmt"
)

type DownloadType string

const (
	ShareDownloadId  DownloadType = "share"
	DirectDownloadId DownloadType = "file"
	DownloadIdLen    int          = 20
)

func (d DownloadType) GetDownloadId(randomString string) string {
	return fmt.Sprintf("%s:%s", d, randomString)
}
